﻿using OnDash.Mathematics.Vector;

namespace OnDash.Windowing.Common.Events;

public readonly struct MouseWheelEventArgs(Vector2 offset)
{
    public Vector2 Offset { get; } = offset;

    public float OffsetX => Offset.X;
    public float OffsetY => Offset.Y;

    public MouseWheelEventArgs(float offsetX, float offsetY)
        : this(new Vector2(offsetX, offsetY))
    {
    }
}